const {
    Joi, validate
} = require("express-validation")

exports.registerValidation = {
    body: Joi.object({
        username: Joi.string().min(3).required(),
        password: Joi.string().min(4).max(15).required(),
        email: Joi.string().email(),
        phone: Joi.string().regex(/1[3|5|7|8|][0-9]{9}/),
    })
}



























